#include "night.h"
#include "ui_night.h"
#include <QPushButton>

Night::Night(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Night)
{
    ui->setupUi(this);
    this->setGeometry(QRect(350,180,850,550));
    setFixedSize(850,550);

    QPushButton *btn31=new QPushButton("Back",this);
    btn31->resize(160,40);
    btn31->move(670,10);
    connect(btn31,&QPushButton::clicked,this,[=](){
       this->close();
    });

}

void Night::paintEvent(QPaintEvent *)
{
    QPainter painter(this);
    painter.drawPixmap(0,0,850,550,QPixmap(":/images/images/7.jpg"));
}

Night::~Night()
{
    delete ui;
}
